//2009/09/09 12:23:33
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <math.h>
#include <sstream>
#include <algorithm>

using namespace std;

class Percents
{
public:
    int minSamples(string p)
    {
		int d = 0;
		p[2] = ' ';
		p[5] = ' ';
		int num;
		stringstream s(p);
		s >> num; d += 100 * num;
		s >> num; d += num;
		for(int i=1; ;i++)
		{
			int y = i * d / 10000;
			if(round(10000.*y/i) == d) return i;
			if(round(10000.*(y+1)/i) == d) return i;
		}
    }
};
